package com.aidex.biz.service;

import com.aidex.biz.domain.Customer;
import com.aidex.biz.domain.MessageInfo;
import com.aidex.biz.domain.enums.MessageTypeEnum;
import com.aidex.common.core.service.BaseService;

import java.util.List;

/**
 * 系统消息Service接口
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2025-03-06
 */
public interface MessageInfoService extends BaseService<MessageInfo> {

    /**
     * 批量删除系统消息
     *
     * @param ids 需要删除的系统消息ID集合
     * @return 结果
     */
    public int deleteMessageInfoByIds(String[] ids);

    /**
     * 获取最大编号
     *
     * @param messageInfo 系统消息
     * @return 结果
     */
    public int findMaxSort(MessageInfo messageInfo);

    public boolean sendMsg(Customer customer, MessageTypeEnum msgType, String msg);

    public boolean updateIsReadMulti(MessageInfo messageInfo);

    public Integer insertBatch(List<MessageInfo> list);

    public boolean sendMsgToUserBatch(List<Customer> customerList, MessageTypeEnum msgType, String msg);
}
